VSeed, an elegant data composer, transforming complexity into simplicity.
!!!###!!!title=124-Is there an API on the mini program that prompts the location of data points when touching the screen with your finger——VisActor/VChart FAQ documents!!!###!!!
On the PC side, the tooltip effect appears when the mouse is hovering over the data point. Is there an API similar to this on the mini program that prompts the position of the data point when the finger touches the screen?
Problem Description
I would like to ask, on the PC side, the tooltip effect appears when the mouse is hovering over the data point. Is there an API similar to this on the Feishu applet that prompts the position of the data point when the finger touches the screen? Something like the picture below:
By the way, I am using the Taro framework.
solution
First of all, the crosshair effect is generally called crosshair cross auxiliary line in the chart library. Currently, VChart directly supports it. You only need to configure the crosshair on the chart.
In addition, VChart also provides corresponding chart components encapsulated based on Taro. You can use this component directly: @visactor/taro-vchart.
The following is the performance of the chart on the Feishu applet after configuring crosshair: